|
Public Member Functions |
| virtual void MCCOMAPI | AddPagesFromTABSResource (ResourceID inResID)=0 |
| virtual IDType MCCOMAPI | AddPage (IMFPart *inPart, const TMCString &inPageName, ResourceID inImageResID, boolean inRecalcTabs, boolean inRenumberPages, boolean inFitPageToHost, boolean inDoNotResizePart=false)=0 |
| virtual IDType MCCOMAPI | AddPage (ResourceID inPartResID, const TMCString &inPageName, ResourceID inImageResID, boolean inRecalcTabs, boolean inRenumberPages, boolean inFitPageToHost, boolean inDoNotResizePart=false)=0 |
| virtual void MCCOMAPI | RemovePage (IDType inPageID, boolean inRecalcPages, boolean inRenumberPages)=0 |
| virtual void MCCOMAPI | RemoveAllPages ()=0 |
| virtual void MCCOMAPI | SetCurrentPage (IDType inCurrentPageID)=0 |
| virtual IDType MCCOMAPI | GetCurrentPage ()=0 |
| virtual IMFPart *MCCOMAPI | GetCurrentTab ()=0 |
| virtual int32 MCCOMAPI | GetPageCount ()=0 |
| virtual void MCCOMAPI | SetTabAlignment (ETabAlignment inTabAlignment)=0 |
| virtual void MCCOMAPI | SetIsIconTabs (boolean inIsIconTabs)=0 |
| virtual boolean MCCOMAPI | GetIsIconTabs ()=0 |
| virtual void MCCOMAPI | SetPageIsEnabled (IDType inPageID, boolean inIsEnabled)=0 |
| virtual void MCCOMAPI | SetPageName (IDType inPageID, const int8 *inName)=0 |
| virtual boolean MCCOMAPI | GetPageIsEnabled (IDType inPageID)=0 |
| virtual void MCCOMAPI | GetPageName (IDType inPageID, int8 *ioName)=0 |
| virtual void MCCOMAPI | GetPageContainingPart (IDType partID, IDType &pageID)=0 |
| virtual IMFPart *MCCOMAPI | GetThisPart ()=0 |
In MCSketch, you will create a Node part of class TMFTabPart, with a child TMFTabArea to hold the tabs themselves and a Node Part to host the tab contents. Give the tab area an ID of 'TabA' and the host NodePart an ID of 'Host'
The pages for the tabs can be generated automatically from a TABS resource, or manually with AddPage()
Tabs can have either text or icon labels. If using icon labels, the textual names of the tabs will be used as tooltips when the cursor hovers over the icon.